package com.asa.mvvm_aop_frame.main.ui.activity

import android.Manifest
import android.os.Bundle
import android.util.Log
import com.asa.mvvm_aop_frame.basic.annotation.PermissionCheck
import com.asa.mvvm_aop_frame.basic.ui.BaseActivity
import com.asa.mvvm_aop_frame.main.BR
import com.asa.mvvm_aop_frame.main.R
import com.asa.mvvm_aop_frame.main.databinding.ActivityMainBinding
import com.asa.mvvm_aop_frame.main.viewmodel.MainViewModel
import com.oplus.studycenter.common.permission.Permissions

class MainActivity : BaseActivity<ActivityMainBinding, MainViewModel>() {



    override fun getLayoutId(): Int {
        return R.layout.activity_main
    }

    override fun initVariableId(): Int {
        return BR.viewModel
    }

    override fun initView(savedInstanceState: Bundle?) {
        requestPermission()
    }

    override fun initData() {

    }

    override fun initViewObservable() {

    }



    @PermissionCheck(permissions = [Permissions.STORAGE],"deniedPermissionProcess")
    fun requestPermission(){
        Log.e("日志", "requestPermission: doaction")
    }


    private fun deniedPermissionProcess(){
        Log.e("日志", "deniedPermissionProcess: MainActivity")
    }



}